import java.util.Calendar;

public class TimePrint  extends Thread {
    String name;
    public TimePrint(String name) {
        this.name= name;
    }
    public void run(){
        System.out.println(name+":"+ Calendar.getInstance().getTime());
    }

    public static void main(String[] args) {
        TimePrint t1 = new TimePrint("Thread1");
        t1.start();
        TimePrint t2 = new TimePrint("Thread2");
        t2.start();
        TimePrint t3 =new TimePrint("Thread3");
        t3.start();
    }
}
